home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1993 March
/
1993-03.d64
/
elect billboard
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
3KB
|
91 lines
20 rem copyright 1993 - compute publications intl ltd - all rights reserved
30 rem written by r. markland
50 :
60 printchr$(147)chr$(142)chr$(8):poke55,0:poke56,48
65 v=53248:poke55280,6:pokev+17,peek(v+17)and239
70 iflo=0thenlo=1:load"ml/ebb",8,1
80 iflo=1thenlo=2:load"c.def ebb",8,1
85 poke252,24:poke253,96:sys252:c=646:vp=781:hp=782:pl=65520
90 poke53281,15:poke788,52:forr=1to36:bl$=bl$+" ":next
92 b1$="[153] [171][177][178][177][179][153] [171][177][178][177][179][153] "
94 b2$="[153] [171][178][177][178][179][153] [171][178][177][178][179][153] ":tx$=" to change the "
98 pokev+22,peek(v+22)and247:co=0:bc=15:gosub1800
100 pokevp,8:pokehp,10:syspl:print"[146][144]electronic billboard"
110 printtab(12)"by: r. markland"
115 printtab(16)"(c) 1993":printtab(5)"compute publications intl ltd"
120 pokev+17,peek(v+17)or16:dimco$(15):forr=0to15:readco$(r):next
150 fort=1to3000:next
160 print"[147][144]":pokevp,3:pokehp,3:syspl
170 printtab(3)"[176][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][174]"
180 forr=1to8:printtab(3)"[194]"spc(32)"[194]":next
200 printtab(3)"[173][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][189]"
210 print"";:printtab(13)"character set"
220 printtab(7)"[144]abcdefghijklmnopqrstuvwxyz"
230 printtab(6)"0123456789 !"chr$(34)"#$%&'()*+,-./:?"
235 pokevp,13:pokehp,6:syspl:print"[del] [clr/home] [^]"
330 sys33031:poke212,0
350 pokevp,13:pokehp,5:syspl:print"message entered, press any key[144]"
360 getd$:ifd$=""then360
365 pokevp,13:pokehp,0:syspl:forr=1to10:printbl$:next
370 pokevp,13:pokehp,0:syspl
375 printbl$:printtab(13)"please select":gosub1000:gosub1030:gosub1060
480 fort=1to500:next
620 print"[147] when billboard is moving, press:"
630 printtab(13)"space[144] to stop":printtab(18)"then"
635 printtab(11)"space[144] to restart"
640 print" f-1[144]"tx$"message":print" f-3[144]"tx$"text color"
650 print" f-5[144]"tx$"background color":print" f-7[144]"tx$"speed"
660 printtab(12)"press space now[144]";:
670 getd$:ifd$<>chr$(32)then670
710 print"[147]":gosub1800:pokev+17,peek(v+17)or16:pokev+23,255:pokev+29,255
720 pokev+27,0:sb=v+16:sp=2040:en=v+21:xl=v:xh=v+8:cr=v+39:y=122:yp=v+1
730 forr=0to7:pokesp+r,193:pokecr+r,co:pokeyp,y:yp=yp+2:next
750 l=56:h=24:forr=0to3:pokexl,l:pokexh,h:xl=xl+2:xh=xh+2:l=l+56:h=h+56:next
760 pokesb,240:pokeen,255:poke32954,16-int(ss*1.6)
770 sys32768:pokeen,0
780 getd$:ifd$=""then780
785 ifd$=chr$(32)then770
790 ifd$=chr$(133)then160
795 ifd$=chr$(134)thenprint"[147]":gosub1000:goto710
800 ifd$=chr$(135)thenprint"[147]":gosub1030:goto710
810 ifd$=chr$(136)thenprint"[147]":gosub1060:goto710
820 goto780
860 printtab(tb);:poke198,0:poke204,0:tp$=""
870 poke647,peek(c):getki$:ifki$=""then870
880 ifki$=chr$(13)thenprint" ";:poke204,1:return
890 ifki$=chr$(20)andlen(tp$)>0thentp$=left$(tp$,len(tp$)-1):goto950
900 ifki$>chr$(47)andki$<chr$(58)then930:
920 goto870
930 iflen(tp$)=(le)then870
940 tp$=tp$+ki$
950 printki$;:goto870
1000 print:printtab(4)"[146]character color (0-15[144])";
1010 gosub1200:le=2:gosub860:co=val(tp$):iftp$=""thenco=-1
1020 ifco<0orco>15thenprint"[157][157][157][157][157] ";:goto1010
1025 return
1030 print:printtab(4)"background color (0-15[144])";
1040 gosub1200:le=2:gosub860:bc=val(tp$):iftp$=""thenbc=-1
1050 ifbc<0orbc>15thenprint"[157][157][157][157][157] ";:goto1040
1055 return
1060 print:printtab(4)"scroll speed - slow to fast"
1070 printtab(4)"(1-9 or return - default=5[144])";
1080 ss=5:gosub1200:le=1:gosub860
1090 iftp$=""thenprint"[157][157]"ss;:return
1100 ss=val(tp$):ifss<1orss>9thenprint"[157][157][157][157][157] ";:goto1080
1105 return
1200 pokevp,peek(214):pokehp,34:syspl:return
1800 pokev+17,peek(v+17)and239:print"[147][154]";:forr=1to3:print" "bl$;:next
1810 print" [176][195][178][195][174][154] [176][195][178][195][174][154] ";
1820 print"[171][178][177][178][179][154] [171][178][177][178][179][154] ";
1830 print"[213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201]";
1835 print"[203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202]";:pokec,co
1850 forr=1to8:print" ";:pokec,bc:printbl$;:pokec,co:print" ";:next
1860 print" ";:pokec,bc:printbl$;:pokec,co:print" ";
1870 print"[201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201][213][201] ";
1880 print"[202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203][202][203]";
1890 forr=1to3:printb1$b2$;:next
1950 print"[153] [171][177][178][177][179][153] [171][177][178][177][179][153] [144]";:poke56295,13
1960 poke2023,160:return
1970 data black,white,red,cyan,purple,green,blue,yellow,orange,brown,light red
1980 data dark gray,medium gray,light green,light blue,light gray